export default function (context, options) {
  return {
    name: 'devServer-plugin',
    configureWebpack() {
      return {
        devServer: {
          proxy: [
            {
              context: ['/atomgit'],
              target: process.env.Docusaurus_DEV_API_TARGET,
              changeOrigin: true,
              secure: false,
              pathRewrite: { '^/atomgit': '' },
            },
          ],
        },
      };
    },
  };
}
